//
//  Student.h
//  08-类的扩展
//
//  Created by dllo on 16/7/13.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import <Foundation/Foundation.h>
//1.规定了协议内容
@protocol GetMacBook <NSObject>
@required
- (NSString *)buyMacBook:(NSString *)money;

@optional
// 开发票
- (void)drawBill;

@end


@interface Student : NSObject
//2.设定委托方
// 委托方的写法
@property (nonatomic, weak) id<GetMacBook> delegate;
// 查看微信时
- (void)seeWeChat;

@end
